<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>留学生管理系统</title>
        <link rel="stylesheet" href="${path}/css/admin3.css">
        <script>
            var _current_item = "#myinfo";
        </script>
        <script type="text/javascript" src="${path}/js/jquery.min.js"></script>
    </head>
    <body>        <input type="hidden" value="${session.passportNo}" id="PN">

        <!--header-->
        <div id="header"></div>
        <div id="main">
            <div id="side-menu"></div>
            <div id="container">
                <div id="inner-border">
                    <div class="stu1">
                        <#if record??>
                        <form action="${path}/stuUpdate/update" method="post">
                            <table>
                                <tr >
                                    <td class="stu2">Student ID：</td><td class="stu2">${record.sNo!}</td>
                                </tr><tr>
                                    <td class="stu2">Family name：</td><td class="stu2">${record.firstName}</td>
                                </tr><tr>
                                    <td class="stu2">Given name：</td><td class="stu2">${record.lastName}</td>
                                </tr><tr>
                                    <td class="stu2">Passport number：</td><td class="stu2">${record.passportNo}</td>
                                </tr><tr>
                                    <td class="stu2">Major：</td><td class="stu2">${record.majorName}</td>
                                </tr><tr>
                                    <td class="stu2">Year of enrollment：</td><td class="stu2">${record.eduStartDate}</td>
                                </tr><tr>
                                    <td class="stu2">Nationality：</td><td class="stu2">${record.nationality}</td>
                                </tr><tr>
                                    <td class="stu2">Visa expiry date：</td><td class="stu2">${record.visaEndDate}</td>
                                </tr><tr>
                                    <td class="stu2">Dormitory number：</td><td class="stu2">${record.dormitoryNo!}</td>
                                </tr><tr>
                                    <td class="stu2">Telephone number：</td><td class="stu2"><input type="text" name="phone" value="${record.phone!}"></td>
                                </tr><tr>
                                    <td class="stu2">E-mail：</td><td class="stu2"><input type="text" name="mailbox" value="${record.mailbox!}"></td>
                                </tr><tr>
                                    <td class="stu2">Old password</td><td class="stu2"><input type="password" name="oldPassword" /></td>
                                </tr><tr>
                                    <td class="stu2">New password</td><td class="stu2"><input type="password" name="newPassword" /></td>
                                </tr><tr>
                                    <td class="stu2">Confirm new password&nbsp;&nbsp;&nbsp;</td><td class="stu2"><input type="password" name="rePassword" ></td>
                                </tr>
                                <tr><td></td>
                                <td><input class="button1" type="submit" value="sure"></td>
                            </tr>
                            </table>
                            <br>
                          
                        </form>
                        </#if>
                    </div>
                </div>
            </div>
        </div>
                <div id="footer"></div>
        <script type="text/javascript" src="${path}/js/student-main-appearance.js"></script>

    </body>
</html>
